<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;

class BlockedUser extends Model
{
    use HasDateTimeFormatter;

    protected $table = 'blocked_users';

    protected $fillable = [
        'user_id', 'reason', 'times', 'action', 'payload', 'version'
    ];

    public function user()
    {
        return $this->belongsTo(User::class, 'user_id');
    }
}
